package cn.itcast.rnk.oop;

import cn.itcast.rnk.oop.ShadowTest.FirstLevel;

public class ShadowTest {

	public int x=0;

	class FirstLevel{
		public int x =100;

		void methodInFirstLevel(int x){
			System.out.println("x="+x);
			System.out.println("this.x="+this.x);
			System.out.println("ShadowTest.this.x="+ShadowTest.this.x);
			System.out.println("ShadowTest.FirstLevel.this.x="+ShadowTest.FirstLevel.this.x);

		}
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		ShadowTest shadowTest = new ShadowTest();
		FirstLevel firstLevel = shadowTest.new FirstLevel();
		firstLevel.methodInFirstLevel(23);
	}

}
